[INFO] cloning repository https://github.com/rishavbhowmik/storage-engine-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rishavbhowmik/storage-engine-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishavbhowmik%2Fstorage-engine-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishavbhowmik%2Fstorage-engine-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f443dfc459f82417678708289c379e2cf7054bb5
[INFO] checking rishavbhowmik/storage-engine-rust against try#a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 for pr-145770
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishavbhowmik%2Fstorage-engine-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/rishavbhowmik/storage-engine-rust
[INFO] finished tweaking git repo https://github.com/rishavbhowmik/storage-engine-rust
[INFO] tweaked toml for git repo https://github.com/rishavbhowmik/storage-engine-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/rishavbhowmik/storage-engine-rust on toolchain a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/rishavbhowmik/storage-engine-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 360abdb4cf8c52718842eed917c5e5610f7e91f9a6c6a14c4f48cdc517cad1df
[INFO] running `Command { std: "docker" "start" "-a" "360abdb4cf8c52718842eed917c5e5610f7e91f9a6c6a14c4f48cdc517cad1df", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "360abdb4cf8c52718842eed917c5e5610f7e91f9a6c6a14c4f48cdc517cad1df", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "360abdb4cf8c52718842eed917c5e5610f7e91f9a6c6a14c4f48cdc517cad1df", kill_on_drop: false }`
[INFO] [stdout] 360abdb4cf8c52718842eed917c5e5610f7e91f9a6c6a14c4f48cdc517cad1df
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 74c16b7382761d906cf2d934a2d2a9e3ecb3ced3e2a2fb794af767baa1effe38
[INFO] running `Command { std: "docker" "start" "-a" "74c16b7382761d906cf2d934a2d2a9e3ecb3ced3e2a2fb794af767baa1effe38", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.112
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]     Checking ppv-lite86 v0.2.15
[INFO] [stderr]     Checking remove_dir_all v0.5.3
[INFO] [stderr]     Checking se1 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]  --> src/storage/util.rs:2:32
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn u32_to_bytes(n: u32) -> ([u8; 4]) {
[INFO] [stdout]   |                                ^       ^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]   |
[INFO] [stdout] 2 - pub fn u32_to_bytes(n: u32) -> ([u8; 4]) {
[INFO] [stdout] 2 + pub fn u32_to_bytes(n: u32) -> [u8; 4] {
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]  --> src/storage/util.rs:2:32
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn u32_to_bytes(n: u32) -> ([u8; 4]) {
[INFO] [stdout]   |                                ^       ^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]   |
[INFO] [stdout] 2 - pub fn u32_to_bytes(n: u32) -> ([u8; 4]) {
[INFO] [stdout] 2 + pub fn u32_to_bytes(n: u32) -> [u8; 4] {
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StorageHeader` is never constructed
[INFO] [stdout]   --> src/storage/mod.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | struct StorageHeader {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `STORAGE_HEADER_SIZE` is never used
[INFO] [stdout]   --> src/storage/mod.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 | const STORAGE_HEADER_SIZE: usize = std::mem::size_of::<StorageHeader>();
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `from_bytes`, and `to_bytes` are never used
[INFO] [stdout]   --> src/storage/mod.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl StorageHeader {
[INFO] [stdout]    | ------------------ associated items in this implementation
[INFO] [stdout] 17 |     fn new(block_len: u32) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 20 |     fn from_bytes(bytes: &[u8; STORAGE_HEADER_SIZE]) -> StorageHeader {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     fn to_bytes(&self) -> [u8; STORAGE_HEADER_SIZE] {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BlockHeader` is never constructed
[INFO] [stdout]   --> src/storage/mod.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 62 | struct BlockHeader {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLOCK_HEADER_SIZE` is never used
[INFO] [stdout]   --> src/storage/mod.rs:66:7
[INFO] [stdout]    |
[INFO] [stdout] 66 | const BLOCK_HEADER_SIZE: usize = std::mem::size_of::<BlockHeader>();
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `from_bytes`, and `to_bytes` are never used
[INFO] [stdout]   --> src/storage/mod.rs:69:8
[INFO] [stdout]    |
[INFO] [stdout] 68 | impl BlockHeader {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 69 |     fn new(block_data_size: u32) -> BlockHeader {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 74 |     fn from_bytes(bytes: &[u8; BLOCK_HEADER_SIZE]) -> BlockHeader {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 80 |     fn to_bytes(&self) -> [u8; BLOCK_HEADER_SIZE] {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Storage` is never constructed
[INFO] [stdout]    --> src/storage/mod.rs:119:12
[INFO] [stdout]     |
[INFO] [stdout] 119 | pub struct Storage {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/storage/mod.rs:143:8
[INFO] [stdout]     |
[INFO] [stdout] 135 | impl Storage {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 143 |     fn open_file_writer(file_path: &String, truncate: bool) -> Result<(File, u64), Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 162 |     fn open_file_reader(file_path: &String) -> Result<(File, u64), Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub fn new(file_path: String, block_len: usize) -> Result<Storage, Error> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 214 |     pub fn open(file_path: String) -> Result<Storage, Error> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 259 |     fn block_exists(&mut self, block_index: u32) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 263 |     fn is_empty_block(&mut self, block_index: usize) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 284 |     fn set_storage_header(&mut self) -> Result<usize, Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 321 |     fn get_storage_header(&mut self) -> Result<usize, Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 364 |     fn read_storage_block_headers(&mut self) -> Result<usize, Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 452 |     pub fn read_block(&mut self, block_index: usize) -> Result<(usize, Vec<u8>), Error> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 519 |     pub fn write_block(&mut self, block_index: usize, data: &Vec<u8>) -> Result<usize, Error> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 590 |     pub fn delete_block(&mut self, block_index: usize, hard_delete: bool) -> Result<usize, Error> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Error` is never constructed
[INFO] [stdout]  --> src/storage/error.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub struct Error {
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `u32_to_bytes` is never used
[INFO] [stdout]  --> src/storage/util.rs:2:8
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn u32_to_bytes(n: u32) -> ([u8; 4]) {
[INFO] [stdout]   |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `bytes_to_u32` is never used
[INFO] [stdout]   --> src/storage/util.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub fn bytes_to_u32(bytes: &[u8]) -> u32 {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking getrandom v0.2.3
[INFO] [stderr]     Checking rand_core v0.6.3
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.4
[INFO] [stderr]     Checking tempfile v3.2.0
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]  --> src/storage/util.rs:2:32
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn u32_to_bytes(n: u32) -> ([u8; 4]) {
[INFO] [stdout]   |                                ^       ^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]   |
[INFO] [stdout] 2 - pub fn u32_to_bytes(n: u32) -> ([u8; 4]) {
[INFO] [stdout] 2 + pub fn u32_to_bytes(n: u32) -> [u8; 4] {
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around type
[INFO] [stdout]  --> src/storage/util.rs:2:32
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn u32_to_bytes(n: u32) -> ([u8; 4]) {
[INFO] [stdout]   |                                ^       ^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]   |
[INFO] [stdout] 2 - pub fn u32_to_bytes(n: u32) -> ([u8; 4]) {
[INFO] [stdout] 2 + pub fn u32_to_bytes(n: u32) -> [u8; 4] {
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Storage` is never constructed
[INFO] [stdout]    --> src/storage/mod.rs:119:12
[INFO] [stdout]     |
[INFO] [stdout] 119 | pub struct Storage {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/storage/mod.rs:143:8
[INFO] [stdout]     |
[INFO] [stdout] 135 | impl Storage {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 143 |     fn open_file_writer(file_path: &String, truncate: bool) -> Result<(File, u64), Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 162 |     fn open_file_reader(file_path: &String) -> Result<(File, u64), Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub fn new(file_path: String, block_len: usize) -> Result<Storage, Error> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 214 |     pub fn open(file_path: String) -> Result<Storage, Error> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 259 |     fn block_exists(&mut self, block_index: u32) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 263 |     fn is_empty_block(&mut self, block_index: usize) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 284 |     fn set_storage_header(&mut self) -> Result<usize, Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 321 |     fn get_storage_header(&mut self) -> Result<usize, Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 364 |     fn read_storage_block_headers(&mut self) -> Result<usize, Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 452 |     pub fn read_block(&mut self, block_index: usize) -> Result<(usize, Vec<u8>), Error> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 519 |     pub fn write_block(&mut self, block_index: usize, data: &Vec<u8>) -> Result<usize, Error> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 590 |     pub fn delete_block(&mut self, block_index: usize, hard_delete: bool) -> Result<usize, Error> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Error` is never constructed
[INFO] [stdout]  --> src/storage/error.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub struct Error {
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.30s
[INFO] running `Command { std: "docker" "inspect" "74c16b7382761d906cf2d934a2d2a9e3ecb3ced3e2a2fb794af767baa1effe38", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "74c16b7382761d906cf2d934a2d2a9e3ecb3ced3e2a2fb794af767baa1effe38", kill_on_drop: false }`
[INFO] [stdout] 74c16b7382761d906cf2d934a2d2a9e3ecb3ced3e2a2fb794af767baa1effe38
